package com.xuetang9.dao;

import com.xuetang9.domain.PoleDefect;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface PoleDefectMapper extends Mapper<PoleDefect> {
    /**
     * 根据poleDefect对象查询poleDefect表
     * @param poleDefect 杆塔缺陷表
     * @return 杆塔缺陷表集合
     */
    List<PoleDefect> listPoleDefect(PoleDefect poleDefect);

    /**
     * 根据poleDefect对象更新poleDefect表
     * @param poleDefect 杆塔缺陷表
     * @return 更新集合
     */
    int updatePoleDefect(PoleDefect poleDefect);
}